<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>{&SITE_TITLE}</title>
  <link href="__PUBLIC__/admin/css/layout.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="__PUBLIC__/js/jquery.js" ></script>
        <script type="text/javascript" src="__PUBLIC__/js/ts_common.js"></script>

    <script type="text/javascript">
    var array = new Array();
    <php>foreach($widget as $key=>$value){</php>
        array[{$key}] = '{$value['explain']}';
    <php>}</php>
    var widgetField = new Array();
    <php>foreach($fields as $key=>$value){</php>
    widgetField['{$key}'] = new Array();
    <php>foreach($value as $sokey=>$sovalue){</php>
    widgetField['{$key}'][{$sokey}] = '{$sovalue}';
    <php>}</php>
    <php>}</php>
    var oldField = new Array();
    var temp_text = "";
    $(function(){
        temp_text = $('#explain').text();
        $('#explain').text($('#explain').text()+":"+array[0]);
    })
    function change(key){
        $('#explain').text(temp_text+":"+array[key]);
    }
    function changeWidget(selectedId,id){
        var field = $('select option[value='+selectedId+']').attr('rel');
        

        	$("select[id!="+id+"][name*='extra']").each(function(){
      		 for(var i=0;i<widgetField[field].length;i++){
          		 $('#'+this.id+' option[value='+widgetField[field][i]+']').remove("");
       		 }
        	});
         
    }
        
    </script>
        </head>
    <body>
        <div id="container">
                                        <div class="tab">
                                <ul>
                                        <li> <a class="on" href="__URL__/index/">招贴种类管理</a></li>
                                        <li><a href="__URL__/adminPoster/">招贴管理</a></li>
                                        <li> <a  href="__URL__/add/">增加招贴</a></li>
                                </ul>
                        </div>
      <form action="__URL__/doTypeDel"  method="post">
            <table class="tableborder" width="100%">
                <tr>
                    <td class="header" colspan="4">全部招贴大分类</td>
                </tr>

                <tr class="cell altbg2">
                    <th width="5%" align="left">操作</th>
                    <th width="20%" align="left">招贴板大分类</th>
                    <th width="20%" align="left">管理</th>
                </tr>
  
                <volist name="poster_type" id="vo">
                    <tr class="cell altbg1">
                        <td>
                            <input name="id[]" type="checkbox" class="feed_id" id="checkbox" value="{$vo.id}"/>
                            </td>
                            <td>
                            {$vo.name}
                        </td>
                        <td><a href="__URL__/editType/id/{$vo.id}">编辑</a> | <a href="__URL__/doTypeDel/id/{$vo.id}">删除</a></td>
                    </tr>

                </volist>

                <tr class="cell altbg2">
                    <td colspan="4"><input name="checkbox5" type="checkbox" class="checkbox" id="checkAll" />
                        全选
                        <input name="button" type="submit" class="button" id="button" value="删除所选项"/>
                    </td>
                </tr>
              
            </table>
         </form>
         
         <form action="__URL__/doDeleteSmallType"  method="post">
            <table class="tableborder" width="100%">
                <tr>
                    <td class="header" colspan="4">招贴小分类管理</td>
                </tr>

                <tr class="cell altbg2">
                    <th width="5%" align="left">操作</th>
                    <th width="20%" align="left">招贴板小分类</th>
                    <th width="20%" align="left">管理</th>
                </tr>
  
                <volist name="smallType" k="key" id="vo">
                
                    <tr class="cell altbg1">
                        <td>
                            <input name="id[]" type="checkbox" class="feed_id" id="checkbox" value="{$vo.label}"/>
                            </td>
                            <td>
                                {$vo.label}
                            </div>
                        </td>
                        <td><a href="__URL__/editSmallType/id/{$vo.label}">编辑</a> | <a href="__URL__/doDeleteSmallType/id/{$vo.label}">删除</a></td>
                    </tr>

                </volist>

                <tr class="cell altbg2">
                    <td colspan="4"><input name="checkbox5" type="checkbox" class="checkbox" id="checkAll" />
                        全选
                        <input name="button" type="submit" class="button" id="button" value="删除所选项"/>
                    </td>
                </tr>
              
            </table>
         </form>
        </div>
    </body>
</html>
